SUMMARY = "Kernel loadable module for Vivante GPU"
DESCRIPTION = "Builds the Vivante GPU kernel driver as a loadable kernel module, \
allowing flexibility to use a newer graphics release with an older kernel."
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
KERNEL_SRC = "git://gitee.com/phytium_embedded/phytium-linux-kernel.git;protocol=https;branch=${KERNEL_BRANCH}"
SRC_URI = "${KERNEL_SRC}"
SRC_URI:append = " file://0001-Add-vpu-driver-add-vpu-in-phytium_defconfig-in-5.10.patch  \
	         file://0002-Add-vpu-in-pe220x-dtsi-in-5.10.patch  \
                 file://0003-Add-vpu-in-phytiumpi-dts-in-5.10.patch \ 
                 file://0004-Add-vpu-in-other-e2000q-board-in-5.10.patch \
                 file://0005-Makefile-update.patch \
"

KERNEL_BRANCH = "linux-5.10"

SRCREV = "bcbcb1389b3cda718c8e265f9f21eca825ad917c"
S = "${WORKDIR}/git"
B = "${WORKDIR}/git/drivers/staging/phytium-vpu"

inherit module

EXTRA_OEMAKE += "CONFIG_VIDEO_PHYTIUM_VPU=m "
KERNEL_MODULE_AUTOLOAD += "phytium_vpu_mem phytium_vpu_vxd"
